import { use } from "react"

async function getDate() {
    await new Promise((resolve) => {
        setTimeout(() => {
            resolve()
        }, 3000)
    })
    return {
        message: '接口请求成功'
    }
}

function DashboardScreen() {
    const { message } = use(getDate())
    return (
        <div>
            <h1>{message} {Error()}</h1>
        </div>
    )
}
export default DashboardScreen;